import { amapAPI } from "../../../utils/request.js" 

/**
 * 获取当前枪共享列表
 * @param { pageIndex <string> , pageSize <string> , socketCode <string> ,  }
 */
const shareList = config =>
  amapAPI.post('/api/share/pageShareList', config, true)

/**
 * 删除对应共享人
 * @param { id <string> }
 */
const deleteShareMember = config =>
  amapAPI.post('/api/share/deleteShareMember', config)

/**
 * 增加
 * @param { socketCode <string>, phone <string>, }
 */
const shareEquipment = config =>
  amapAPI.post('/api/share/shareEquipment', config)

/**
 * 详情
 * @param { socketCode <string>, }
 */
const socketDetail = config =>
  amapAPI.post('/api/socket/find', config)


export {
  shareList,
  deleteShareMember,
  shareEquipment,
  socketDetail
}